<?php
/**
 * Created by PhpStorm.
 * User: yunpeng
 * Date: 2019/1/11
 * Time: 14:29
 */

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;


class LoginController extends Controller
{
    public function authenticate(Request $request)
    {
        $credentials = $request->only('phone', 'password');

        if (Auth::attempt(['phone' => $credentials['phone'], 'password' => $credentials['password'], 'status' => 1])) {

        }
    }


}